package com.appsys.factory;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;

public class SpringFactory implements BeanFactoryAware {
	private static BeanFactory beanfactory;
	@Override
	public void setBeanFactory(BeanFactory arg0) throws BeansException {
		SpringFactory.beanfactory=arg0;
		
	}
	public static Object getBean(String beanName){
		return beanfactory.getBean(beanName);
	}

}
